import request from "@/utils/request";

export const getAllChannel = () => {
    return request({
        url: '/v1_0/channels',
    })
}

export const addChannel = (data) => {
    return request({
        url: '/v1_0/user/channels',
        method: 'PATCH',
        data
    })
}

export const delChannel = (target) => {
    return request({
        url: `/v1_0/user/channels/${target}`,
        method: 'DELETE',
    })
}


